package com.jinsilu.freight.http.response;

import android.text.TextUtils;

import com.google.gson.annotations.SerializedName;

/**
 * 行驶证识别结果
 *
 * @author yangyang
 * @time 2021/03/17 15:17
 */
public class OCRDrivingBean {

    /**
     * number : 冀AEU290
     * address : 河北省石家庄市鹿泉区李村镇李村村南
     * engine_no : 7520A003010
     * issue_date : 2020-03-30
     * issuing_authority : 河北省石家庄市公安局交通警察支队
     * use_character : 货运
     * name : 石家庄捷茂汽车运输有限公司
     * vehicle_type : 重型半挂牵引车
     * vin : LFWSRURH3LAP00595
     * model : 解放牌CA4256P1K2T1E5A8
     * register_date : 2020-03-301
     * <p>
     * approved_load :
     * traction_mass : 40000kg
     * approved_passengers : 2人
     * inspection_record : 检验有效期至2021年03月冀A(85)柴油
     * unladen_mass : 8415kg
     * file_no : 130185111501
     * dimension : 6675×2490×3290mm
     * remarks : 强制报废期止：2035-03-30
     * gross_mass :
     * code_number : *1330031455354*
     */

    @SerializedName("number")
    private String number;
    @SerializedName("address")
    private String address;
    @SerializedName("engine_no")
    private String engineNo;
    @SerializedName("issue_date")
    private String issueDate;
    @SerializedName("issuing_authority")
    private String issuingAuthority;
    @SerializedName("use_character")
    private String useCharacter;
    @SerializedName("name")
    private String name;
    @SerializedName("vehicle_type")
    private String vehicleType;
    @SerializedName("vin")
    private String vin;
    @SerializedName("model")
    private String model;
    @SerializedName("register_date")
    private String registerDate;
    @SerializedName("approved_load")
    private String approvedLoad;
    @SerializedName("traction_mass")
    private String tractionMass;
    @SerializedName("approved_passengers")
    private String approvedPassengers;
    @SerializedName("inspection_record")
    private String inspectionRecord;
    @SerializedName("unladen_mass")
    private String unladenMass;
    @SerializedName("file_no")
    private String fileNo;
    @SerializedName("dimension")
    private String dimension;
    @SerializedName("remarks")
    private String remarks;
    @SerializedName("gross_mass")
    private String grossMass;
    @SerializedName("code_number")
    private String codeNumber;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEngineNo() {
        return engineNo;
    }

    public void setEngineNo(String engineNo) {
        this.engineNo = engineNo;
    }

    public String getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(String issueDate) {
        this.issueDate = issueDate;
    }

    public String getIssuingAuthority() {
        return issuingAuthority;
    }

    public void setIssuingAuthority(String issuingAuthority) {
        this.issuingAuthority = issuingAuthority;
    }

    public String getUseCharacter() {
        return useCharacter;
    }

    public void setUseCharacter(String useCharacter) {
        this.useCharacter = useCharacter;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVehicleType() {
        return vehicleType;
    }

    public void setVehicleType(String vehicleType) {
        this.vehicleType = vehicleType;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

    public String getApprovedLoad() {
        // 去掉非数字字符
        return TextUtils.isEmpty(approvedLoad) ? "" : approvedLoad.replaceAll("[^0-9]", "");
    }

    public void setApprovedLoad(String approvedLoad) {
        this.approvedLoad = approvedLoad;
    }

    public String getTractionMass() {
        return tractionMass;
    }

    public void setTractionMass(String tractionMass) {
        this.tractionMass = tractionMass;
    }

    public String getApprovedPassengers() {
        return approvedPassengers;
    }

    public void setApprovedPassengers(String approvedPassengers) {
        this.approvedPassengers = approvedPassengers;
    }

    public String getInspectionRecord() {
        return inspectionRecord;
    }

    public void setInspectionRecord(String inspectionRecord) {
        this.inspectionRecord = inspectionRecord;
    }

    public String getUnladenMass() {
        return unladenMass;
    }

    public void setUnladenMass(String unladenMass) {
        this.unladenMass = unladenMass;
    }

    public String getFileNo() {
        return fileNo;
    }

    public void setFileNo(String fileNo) {
        this.fileNo = fileNo;
    }

    public String getDimension() {
        return dimension;
    }

    public void setDimension(String dimension) {
        this.dimension = dimension;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getGrossMass() {
        // 去掉非数字字符
        return TextUtils.isEmpty(grossMass) ? "" : grossMass.replaceAll("[^0-9]", "");
    }

    public void setGrossMass(String grossMass) {
        this.grossMass = grossMass;
    }

    public String getCodeNumber() {
        return codeNumber;
    }

    public void setCodeNumber(String codeNumber) {
        this.codeNumber = codeNumber;
    }
}
